//
//  NetworkTools+User.swift
//  WeiBo
//
//  Created by 张德华 on 7/24/16.
//  Copyright © 2016 ZhangDeHua. All rights reserved.
//

import Foundation


// MARK: - ************网络工具,用户接口
extension WQNetworkTools {
    
    ///  加载用户信息
    ///
    ///  - parameter access_token: access_token
    ///  - parameter uid:          uid
    ///  - parameter finished:     finished 完成回调(字典)
    func loadUser(access_token: String, uid: String, finished: ([String: AnyObject]?) -> ()) {
        
        let urlString = "https://api.weibo.com/2/users/show.json"
        let params = ["access_token":access_token,"uid":uid]
        
        request(WQRequestMethod.GET, URLString: urlString, parameters: params, finished: finished)
    }
    
    
    
    
    
    
}